[INFO] cloning repository https://github.com/coderSomya/bilist
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/coderSomya/bilist" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcoderSomya%2Fbilist", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcoderSomya%2Fbilist'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f848444e92b63517b76b9801fe5b823483657a99
[INFO] fixing coderSomya/bilist against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcoderSomya%2Fbilist" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/coderSomya/bilist
[INFO] finished tweaking git repo https://github.com/coderSomya/bilist
[INFO] tweaked toml for git repo https://github.com/coderSomya/bilist written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/coderSomya/bilist on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/coderSomya/bilist already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc
[INFO] running `Command { std: "docker" "start" "cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking bilist v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:83:52
[INFO] [stdout]    |
[INFO] [stdout] 83 |             memory.deref_mut(new_node).next = Some(begin_node);
[INFO] [stdout]    |                                               ---- ^^^^^^^^^^ expected `Ptr<T>`, found `usize`
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] help: the type constructed contains `usize` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:83:47
[INFO] [stdout]    |
[INFO] [stdout] 83 |             memory.deref_mut(new_node).next = Some(begin_node);
[INFO] [stdout]    |                                               ^^^^^----------^
[INFO] [stdout]    |                                                    |
[INFO] [stdout]    |                                                    this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:84:30
[INFO] [stdout]    |
[INFO] [stdout] 84 |             memory.deref_mut(begin_node).prev = Some(new_node);
[INFO] [stdout]    |                    --------- ^^^^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/lib.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn deref_mut(&mut self, index: Ptr<T>) ->&mut T{
[INFO] [stdout]    |            ^^^^^^^^^            -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:84:54
[INFO] [stdout]    |
[INFO] [stdout] 71 | impl<T: Clone> Deque<T>{
[INFO] [stdout]    |      - expected this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 84 |             memory.deref_mut(begin_node).prev = Some(new_node);
[INFO] [stdout]    |                                                 ---- ^^^^^^^^ expected `Ptr<T>`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                                                 |
[INFO] [stdout]    |                                                 arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]               found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:84:49
[INFO] [stdout]    |
[INFO] [stdout] 84 |             memory.deref_mut(begin_node).prev = Some(new_node);
[INFO] [stdout]    |                                                 ^^^^^--------^
[INFO] [stdout]    |                                                      |
[INFO] [stdout]    |                                                      this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:85:31
[INFO] [stdout]    |
[INFO] [stdout] 85 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:85:26
[INFO] [stdout]    |
[INFO] [stdout] 85 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ^^^^^--------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:88:31
[INFO] [stdout]    |
[INFO] [stdout] 88 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:88:26
[INFO] [stdout]    |
[INFO] [stdout] 88 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ^^^^^--------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:89:29
[INFO] [stdout]    |
[INFO] [stdout] 89 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:89:24
[INFO] [stdout]    |
[INFO] [stdout] 89 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ^^^^^--------^
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:96:52
[INFO] [stdout]    |
[INFO] [stdout] 96 |             memory.deref_mut(new_node).prev = Some(end_node);
[INFO] [stdout]    |                                               ---- ^^^^^^^^ expected `Ptr<T>`, found `usize`
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] help: the type constructed contains `usize` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:96:47
[INFO] [stdout]    |
[INFO] [stdout] 96 |             memory.deref_mut(new_node).prev = Some(end_node);
[INFO] [stdout]    |                                               ^^^^^--------^
[INFO] [stdout]    |                                                    |
[INFO] [stdout]    |                                                    this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:97:30
[INFO] [stdout]    |
[INFO] [stdout] 97 |             memory.deref_mut(end_node).next = Some(new_node);
[INFO] [stdout]    |                    --------- ^^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/lib.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn deref_mut(&mut self, index: Ptr<T>) ->&mut T{
[INFO] [stdout]    |            ^^^^^^^^^            -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:97:52
[INFO] [stdout]    |
[INFO] [stdout] 71 | impl<T: Clone> Deque<T>{
[INFO] [stdout]    |      - expected this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 97 |             memory.deref_mut(end_node).next = Some(new_node);
[INFO] [stdout]    |                                               ---- ^^^^^^^^ expected `Ptr<T>`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]               found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:97:47
[INFO] [stdout]    |
[INFO] [stdout] 97 |             memory.deref_mut(end_node).next = Some(new_node);
[INFO] [stdout]    |                                               ^^^^^--------^
[INFO] [stdout]    |                                                    |
[INFO] [stdout]    |                                                    this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:98:29
[INFO] [stdout]    |
[INFO] [stdout] 98 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:98:24
[INFO] [stdout]    |
[INFO] [stdout] 98 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ^^^^^--------^
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:101:31
[INFO] [stdout]     |
[INFO] [stdout] 101 |             self.begin = Some(new_node);
[INFO] [stdout]     |                          ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `usize`
[INFO] [stdout]              found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]    --> src/lib.rs:101:26
[INFO] [stdout]     |
[INFO] [stdout] 101 |             self.begin = Some(new_node);
[INFO] [stdout]     |                          ^^^^^--------^
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:102:29
[INFO] [stdout]     |
[INFO] [stdout] 102 |             self.end = Some(new_node);
[INFO] [stdout]     |                        ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `usize`
[INFO] [stdout]              found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]    --> src/lib.rs:102:24
[INFO] [stdout]     |
[INFO] [stdout] 102 |             self.end = Some(new_node);
[INFO] [stdout]     |                        ^^^^^--------^
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:108:37
[INFO] [stdout]     |
[INFO] [stdout] 108 |             self.end = memory.deref(end_ref).prev;
[INFO] [stdout]     |                               ----- ^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                  found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/lib.rs:38:12
[INFO] [stdout]     |
[INFO] [stdout]  38 |     pub fn deref(&self, index: Ptr<T>) -> &T{
[INFO] [stdout]     |            ^^^^^        -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:108:24
[INFO] [stdout]     |
[INFO] [stdout] 108 |             self.end = memory.deref(end_ref).prev;
[INFO] [stdout]     |             --------   ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<usize>`, found `Option<Ptr<T>>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<usize>`
[INFO] [stdout]                found enum `Option<Ptr<T>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `dealloc` found for mutable reference `&mut Memory<Node<T>>` in the current scope
[INFO] [stdout]    --> src/lib.rs:109:20
[INFO] [stdout]     |
[INFO] [stdout] 109 |             memory.dealloc(end_ref);
[INFO] [stdout]     |                    ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `dealloc`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `GlobalAlloc`
[INFO] [stdout] help: there is a method `alloc` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 109 -             memory.dealloc(end_ref);
[INFO] [stdout] 109 +             memory.alloc(end_ref);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:119:39
[INFO] [stdout]     |
[INFO] [stdout] 119 |             self.begin = memory.deref(begin_ref).next;
[INFO] [stdout]     |                                 ----- ^^^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]     |                                 |
[INFO] [stdout]     |                                 arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                  found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/lib.rs:38:12
[INFO] [stdout]     |
[INFO] [stdout]  38 |     pub fn deref(&self, index: Ptr<T>) -> &T{
[INFO] [stdout]     |            ^^^^^        -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:83:52
[INFO] [stdout]    |
[INFO] [stdout] 83 |             memory.deref_mut(new_node).next = Some(begin_node);
[INFO] [stdout]    |                                               ---- ^^^^^^^^^^ expected `Ptr<T>`, found `usize`
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] help: the type constructed contains `usize` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:83:47
[INFO] [stdout]    |
[INFO] [stdout] 83 |             memory.deref_mut(new_node).next = Some(begin_node);
[INFO] [stdout]    |                                               ^^^^^----------^
[INFO] [stdout]    |                                                    |
[INFO] [stdout]    |                                                    this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:119:26
[INFO] [stdout]     |
[INFO] [stdout] 119 |             self.begin = memory.deref(begin_ref).next;
[INFO] [stdout]     |             ----------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<usize>`, found `Option<Ptr<T>>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<usize>`
[INFO] [stdout]                found enum `Option<Ptr<T>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `dealloc` found for mutable reference `&mut Memory<Node<T>>` in the current scope
[INFO] [stdout]    --> src/lib.rs:120:20
[INFO] [stdout]     |
[INFO] [stdout] 120 |             memory.dealloc(begin_ref);
[INFO] [stdout]     |                    ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `dealloc`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `GlobalAlloc`
[INFO] [stdout] help: there is a method `alloc` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 120 -             memory.dealloc(begin_ref);
[INFO] [stdout] 120 +             memory.alloc(begin_ref);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:84:30
[INFO] [stdout]    |
[INFO] [stdout] 84 |             memory.deref_mut(begin_node).prev = Some(new_node);
[INFO] [stdout]    |                    --------- ^^^^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/lib.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn deref_mut(&mut self, index: Ptr<T>) ->&mut T{
[INFO] [stdout]    |            ^^^^^^^^^            -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:84:54
[INFO] [stdout]    |
[INFO] [stdout] 71 | impl<T: Clone> Deque<T>{
[INFO] [stdout]    |      - expected this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 84 |             memory.deref_mut(begin_node).prev = Some(new_node);
[INFO] [stdout]    |                                                 ---- ^^^^^^^^ expected `Ptr<T>`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                                                 |
[INFO] [stdout]    |                                                 arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]               found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:84:49
[INFO] [stdout]    |
[INFO] [stdout] 84 |             memory.deref_mut(begin_node).prev = Some(new_node);
[INFO] [stdout]    |                                                 ^^^^^--------^
[INFO] [stdout]    |                                                      |
[INFO] [stdout]    |                                                      this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:85:31
[INFO] [stdout]    |
[INFO] [stdout] 85 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:85:26
[INFO] [stdout]    |
[INFO] [stdout] 85 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ^^^^^--------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:88:31
[INFO] [stdout]    |
[INFO] [stdout] 88 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:88:26
[INFO] [stdout]    |
[INFO] [stdout] 88 |             self.begin = Some(new_node);
[INFO] [stdout]    |                          ^^^^^--------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:89:29
[INFO] [stdout]    |
[INFO] [stdout] 89 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:89:24
[INFO] [stdout]    |
[INFO] [stdout] 89 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ^^^^^--------^
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:96:52
[INFO] [stdout]    |
[INFO] [stdout] 96 |             memory.deref_mut(new_node).prev = Some(end_node);
[INFO] [stdout]    |                                               ---- ^^^^^^^^ expected `Ptr<T>`, found `usize`
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] help: the type constructed contains `usize` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:96:47
[INFO] [stdout]    |
[INFO] [stdout] 96 |             memory.deref_mut(new_node).prev = Some(end_node);
[INFO] [stdout]    |                                               ^^^^^--------^
[INFO] [stdout]    |                                                    |
[INFO] [stdout]    |                                                    this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:97:30
[INFO] [stdout]    |
[INFO] [stdout] 97 |             memory.deref_mut(end_node).next = Some(new_node);
[INFO] [stdout]    |                    --------- ^^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                 found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/lib.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn deref_mut(&mut self, index: Ptr<T>) ->&mut T{
[INFO] [stdout]    |            ^^^^^^^^^            -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bilist` (lib test) due to 18 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:97:52
[INFO] [stdout]    |
[INFO] [stdout] 71 | impl<T: Clone> Deque<T>{
[INFO] [stdout]    |      - expected this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 97 |             memory.deref_mut(end_node).next = Some(new_node);
[INFO] [stdout]    |                                               ---- ^^^^^^^^ expected `Ptr<T>`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ptr<T>`
[INFO] [stdout]               found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:97:47
[INFO] [stdout]    |
[INFO] [stdout] 97 |             memory.deref_mut(end_node).next = Some(new_node);
[INFO] [stdout]    |                                               ^^^^^--------^
[INFO] [stdout]    |                                                    |
[INFO] [stdout]    |                                                    this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:98:29
[INFO] [stdout]    |
[INFO] [stdout] 98 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]             found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]   --> src/lib.rs:98:24
[INFO] [stdout]    |
[INFO] [stdout] 98 |             self.end = Some(new_node);
[INFO] [stdout]    |                        ^^^^^--------^
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:101:31
[INFO] [stdout]     |
[INFO] [stdout] 101 |             self.begin = Some(new_node);
[INFO] [stdout]     |                          ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `usize`
[INFO] [stdout]              found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]    --> src/lib.rs:101:26
[INFO] [stdout]     |
[INFO] [stdout] 101 |             self.begin = Some(new_node);
[INFO] [stdout]     |                          ^^^^^--------^
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:102:29
[INFO] [stdout]     |
[INFO] [stdout] 102 |             self.end = Some(new_node);
[INFO] [stdout]     |                        ---- ^^^^^^^^ expected `usize`, found `Ptr<Node<T>>`
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `usize`
[INFO] [stdout]              found struct `Ptr<Node<T>>`
[INFO] [stdout] help: the type constructed contains `Ptr<Node<T>>` due to the type of the argument passed
[INFO] [stdout]    --> src/lib.rs:102:24
[INFO] [stdout]     |
[INFO] [stdout] 102 |             self.end = Some(new_node);
[INFO] [stdout]     |                        ^^^^^--------^
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:605:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:108:37
[INFO] [stdout]     |
[INFO] [stdout] 108 |             self.end = memory.deref(end_ref).prev;
[INFO] [stdout]     |                               ----- ^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                  found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/lib.rs:38:12
[INFO] [stdout]     |
[INFO] [stdout]  38 |     pub fn deref(&self, index: Ptr<T>) -> &T{
[INFO] [stdout]     |            ^^^^^        -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:108:24
[INFO] [stdout]     |
[INFO] [stdout] 108 |             self.end = memory.deref(end_ref).prev;
[INFO] [stdout]     |             --------   ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<usize>`, found `Option<Ptr<T>>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<usize>`
[INFO] [stdout]                found enum `Option<Ptr<T>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `dealloc` found for mutable reference `&mut Memory<Node<T>>` in the current scope
[INFO] [stdout]    --> src/lib.rs:109:20
[INFO] [stdout]     |
[INFO] [stdout] 109 |             memory.dealloc(end_ref);
[INFO] [stdout]     |                    ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `dealloc`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `GlobalAlloc`
[INFO] [stdout] help: there is a method `alloc` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 109 -             memory.dealloc(end_ref);
[INFO] [stdout] 109 +             memory.alloc(end_ref);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:119:39
[INFO] [stdout]     |
[INFO] [stdout] 119 |             self.begin = memory.deref(begin_ref).next;
[INFO] [stdout]     |                                 ----- ^^^^^^^^^ expected `Ptr<Node<T>>`, found `usize`
[INFO] [stdout]     |                                 |
[INFO] [stdout]     |                                 arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Ptr<Node<T>>`
[INFO] [stdout]                  found type `usize`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/lib.rs:38:12
[INFO] [stdout]     |
[INFO] [stdout]  38 |     pub fn deref(&self, index: Ptr<T>) -> &T{
[INFO] [stdout]     |            ^^^^^        -------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:119:26
[INFO] [stdout]     |
[INFO] [stdout] 119 |             self.begin = memory.deref(begin_ref).next;
[INFO] [stdout]     |             ----------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<usize>`, found `Option<Ptr<T>>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<usize>`
[INFO] [stdout]                found enum `Option<Ptr<T>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `dealloc` found for mutable reference `&mut Memory<Node<T>>` in the current scope
[INFO] [stdout]    --> src/lib.rs:120:20
[INFO] [stdout]     |
[INFO] [stdout] 120 |             memory.dealloc(begin_ref);
[INFO] [stdout]     |                    ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `dealloc`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `GlobalAlloc`
[INFO] [stdout] help: there is a method `alloc` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 120 -             memory.dealloc(begin_ref);
[INFO] [stdout] 120 +             memory.alloc(begin_ref);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bilist` (lib) due to 18 previous errors
[INFO] running `Command { std: "docker" "inspect" "cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc", kill_on_drop: false }`
[INFO] [stdout] cf0192a015f1abf3ac3f0ba2b68fa251d42baeca6c2868f35aefb9a04bb16ccc
